package coop.bancocredicoop.proyectos.gd.service;

import org.hibernate.classic.Session;

import coop.bancocredicoop.proyectos.gd.domain.DocumentType;
import coop.bancocredicoop.proyectos.gd.query.DataService;

public class DocumentTypeService extends DataService {

	public DocumentType getById(Long documentTypeId) {
		Session session = getSession();
		DocumentType documentType = null;
		
		try {
			documentType = (DocumentType) session.get(DocumentType.class, documentTypeId);
		} finally {
			closeSession(session);
		}
		
		return documentType;
		
	}
	
}
